package com.study.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;


@Data
@TableName("student_data")
@ApiModel(value="学生数据对象", description="学生数据表")
@EqualsAndHashCode(callSuper = true)
public class StudentDataDO extends BaseDO{

    @TableField("remark")
    @ApiModelProperty("备注")
    private String remark;

    @NotNull(message = "学生ID不能为空*")
    @TableField("studentId")
    @ApiModelProperty(value = "学生ID", required = true)
    private Long studentId;

    @ApiModelProperty("所属学生")
    private StudentDO student;

}
